<?php

namespace common\models\notice;

use Yii;

/**
 * This is the model class for table "{{%notice_tag}}".
 *
 * @property int $id
 * @property int $notice_id 通知ID
 * @property int $taglib_id 标签ID
 * @property string $text 标签名称
 * @property int $status 状态
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class NoticeTag extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%notice_tag}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['notice_id', 'taglib_id', 'status', 'created_at', 'updated_at'], 'integer'],
            [['text'], 'string', 'max' => 50],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'notice_id' => '通知ID',
            'taglib_id' => '标签ID',
            'text' => '标签名称',
            'status' => '状态',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }

}
